import axios from "axios";

// 智能检测
// 学生分布情况
export const getLeftBtn = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/intelligentDetection/data',
    method: 'get'
  })
}

// 水电用量
export const getRightTop = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataTop',
    method: 'get'
  })
}
// 校园人员流动情况
export const getRightBtn = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataBottom',
    method: 'get'
  })
}

// 就业态势
// 近三年
export const getCartLeftTop = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/student/stats/byAreaCode',
    method: 'get'
  })
}
// 工作状态
export const getCartLeftFoot = (params: object) => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/student/stats/status',
    method: 'get',
    params,
  })
}
//流向城市
export const getCartRightTop = (params: object) => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/student/stats/distribution',
    method: 'get',
    params,
  })
}
//薪资分布

export const getCarRightFoot = (params: object) => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/student/stats/salary',
    method: 'get',
    params,
  })
}
// 中间
export const getCarCen=()=>{
  return axios({
    url:'',
    method:'get'
  })
}


// 安防管理
// 监控管理
export const getClassLeftTop = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/safeManage/monitoringSituation',
    method: 'get',
  })
}
// 值班情况
export const getClassLeftFoot = () => {
  return axios({
    url: 'http://localhost:3002/v1.0/api/safeManage/entranceGuardSituation',
    method: 'get',
  })
}
//00

// 地图
export const getMap = (data: any) => {
  return axios({
    url: `https://geo.datav.aliyun.com/areas_v3/bound/${data}_full.json`,
    method: 'get'
  })
}

// 设备运维
// 实时用电
export const getMyLeftCen = () => {
  return axios({
    url: "http://localhost:3002/v1.0/api/deviceWorking/electricityConsumption",
    method: 'get'
  })
}
// 场地使用
export const getMyLeftFoot = () => {
  return axios({
    url: "http://localhost:3002/v1.0/api/deviceWorking/venueUse",
    method: 'get'
  })
}
// 设备检测
export const getMyRightTop = () => {
  return axios({
    url: "http://localhost:3002/v1.0/api/deviceWorking/equipmentTesting",
    method: 'get'
  })
}
// 实时警报
export const getMyRightFoot = () => {
  return axios({
    url: "http://localhost:3002/v1.0/api/deviceWorking/allPoliceData",
    method: 'get'
  })
}